package com.zhika.zishi.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.zhika.zishi.R;

/**
 * Created by shi-02 on 2015/4/17.
 * 选择图片，拍照、相册
 */
public class SelectPictureActivity extends BaseActivity implements View.OnClickListener {

    private TextView cameraText;

    private TextView albumText;

    private TextView cancelText;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.select_picture_dialog_layout);

        initView();
    }

    private void initView(){
        cameraText = (TextView) findViewById(R.id.select_picture_dialog_camera_text);
        cameraText.setOnClickListener(this);

        albumText = (TextView) findViewById(R.id.select_picture_dialog_album_text);
        albumText.setOnClickListener(this);

        cancelText = (TextView) findViewById(R.id.select_picture_dialog_cancel_text);
        cancelText.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.select_picture_dialog_camera_text:
                cameraTextListener();
                break;
            case R.id.select_picture_dialog_album_text:
                albumTextListener();
                break;
            case R.id.select_picture_dialog_cancel_text:
                finish();
                break;
            default:
                break;
        }
    }

    /**
     * 拍照事件
     */
    private void cameraTextListener(){

    }

    /**
     * 在相册中选取图片
     */
    private void albumTextListener(){

    }
}
